import Vue from "vue";
import App from "./App.vue";
import ElementUI from "element-ui";
import "element-ui/lib/theme-chalk/index.css";
import router from "./router";
import axios from "axios";
import VueAxios from "vue-axios";
import Vuex from "vuex";
import store from "./Vuex";
import common from "./common"; // 引入全局文件common.js

Vue.prototype.$common = common; // 全局变量
axios.defaults.baseURL = common.baseURL;

Vue.use(Vuex);
Vue.use(VueAxios, axios);
Vue.use(ElementUI); //全局使用ElementUI
Vue.config.productionTip = false;

new Vue({
  router,
  store,
  render: (h) => h(App),
}).$mount("#app");
